matplotlib add space between subplots

42

matplotlib add space between subplots -

import matplotlib.pyplot as plt

fig, axes = plt.subplots(nrows=4, ncols=4)
fig.tight_layout() # Or equivalently,  "plt.tight_layout()"

plt.show()

python subplot space between plots -

import matplotlib.pyplot as plt

fig, axes = plt.subplots(nrows=4, ncols=4)
fig.tight_layout(rect=[0, 0.03, 1, 0.95]) # Or equivalently, "plt.tight_layout()"

plt.show()

how to increase distance between subplot matplot lib -

subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=None, hspace=None)

Comments

Submit
0 Comments